/**
 * @author mars
 */


$(function(){
	article.init();
});



var article = {
	init:function(){
		$('a[name=join]').click(function(){
			$('.discussion-block').animate({
				opacity: 0,
				height: 500
			}, 
			{
				duration: 500,
				complete:function(){
					$(this).html("display chat stuff");
					$(this).css("opacity", "1");
				}
			}
			);
			var art = $('#article-container');
			art.css("width", "200px");
			/*
			art.animate({
				width: 200
			},
			{
				duration: 500
			}
			);
			*/
			$('#discussion-container').animate({
				width: 600
			}, 500);
			
		});
	}
};
